package com.ruoyi.web.controller.system;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.system.domain.College;
import com.ruoyi.system.service.CollegeService;
import com.ruoyi.system.service.impl.CollegeServiceIml;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

@RestController
@RequestMapping("system/schoolContrast")
public class schoolContrastController extends BaseController {
    @Autowired
    private CollegeService collegeService;
    @GetMapping("/{name}/{name1}")
    public TableDataInfo getCollege(@PathVariable String name,@PathVariable String name1){
        List<College> collegeList=new ArrayList<>();
        collegeList.add(collegeService.selectTwo(name));
        collegeList.add(collegeService.selectTwo(name1));
        return getDataTable(collegeList);
    }
}
